package org.baojie.raft.store;

import org.baojie.raft.node.NodeName;

import java.io.IOException;

public interface NodeStore {

    int getTerm();

    boolean setTerm(int term);

    NodeName getVotedFor();

    NodeName setVotedFor(NodeName votedFor);

    void open() throws IOException;

    void close() throws IOException;

}
